python close file

35

with open(filename) as f:
  #use file

 #close file
f.close()
fileObject.close()

Comments

Submit
0 Comments